package com.ethink.mdm.api.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author: lzy
 * @Date: Created in 2022/12/8 14:34
 * ModifiedBy:
 * Version:
 */
@Data
public class LegalCurrencyExchangeRateGetSummaryResponse {
    @Schema(description ="发布时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date pubTime;

    @Schema(description ="汇率列表")
    private List<LegalCurrencyExchangeRateListResponseItem> items;

    @Data
    public static class LegalCurrencyExchangeRateListResponseItem {
        @Schema(description = "源币种编码")
        private String orgCurrencyCode;

        @Schema(description = "源币种名称")
        private String orgCurrencyName;

        @Schema(description = "目标币种编码")
        private String aimCurrencyCode;

        @Schema(description = "目标币种名称")
        private String aimCurrencyName;

        @Schema(description = "汇率")
        private BigDecimal rate;
    }
}
